package com.onstar.cn.mag;

/**
 * Created by kai zhang on 2015/12/14.
 */
public class ChargingProfileEntity {
    private String chargeMode;
    private String rateType;

    public void setChargeMode(String chargeMode) {
        this.chargeMode = chargeMode;
    }

    public void setRateType(String rateType) {
        this.rateType = rateType;
    }

    public String getChargeMode() {
        return chargeMode;
    }

    public String getRateType() {
        return rateType;
    }

    public ChargeMode getChargeModeEnum() {
        return ChargeMode.valueOf(chargeMode);
    }

    public RateType getRateTypeEnum() {
        return RateType.valueOf(rateType);
    }

    public enum ChargeMode {
        DEFAULT_IMMEDIATE,
        IMMEDIATE,
        DEPARTURE_BASED,
        RATE_BASED,
        PHEV_AFTER_MIDNIGHT
    }

    public enum RateType {
        PEAK,
        MIDPEAK,
        OFFPEAK,
        INVALID
    }

    @Override
    public String toString() {
        return "chargeMode=" + chargeMode + ",rateType=" + rateType;
    }
}
